﻿
/////////////////////////////////////////////////////////////////
//File: ProductDao.cs
//Description: 
//Copyright© 2011 Moliu
//History:
//  2011-3-26 18:11:20    CodeSmith5.0.1    Original Version
/////////////////////////////////////////////////////////////////
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Data.SqlTypes;
using IBatisNet.DataMapper;
using IBatisNet.DataMapper.Configuration;
using MAF.Common;
using Domain.Entities;
using MAF.CRUD;
using Domain.Collections;

namespace Database.Persistence
{
    public class ProductCollection : DatabaseCRUD<ProductInfo>
    {
        protected override string _MapAdd { get { return "Product.Add"; } }
        protected override string _MapUpdate { get { return "Product.Update"; } }
        protected override string _MapDelete { get { return "Product.Delete"; } }
        protected override string _MapSearch { get { return "Product.Search"; } }
        protected override string _MapCount { get { return "Product.Count"; } }

        private string _TABLE = "";
        protected override string _Table
        {
            get { return _TABLE; }
            set { _TABLE = value; }
        }

        #region 构造方法

        public ProductCollection(string configFile,string tableName) : base(configFile) 
        {
            _Table = tableName;
        }

        #endregion
    }
}